<template>
  <div class="form-single-fragment" style="position: relative;">
    <div class="table_container">
      <el-table :data="tableDate" size="mini" style="width: 100%;" header-cell-class-name="table-header-gray">
        <el-table-column type="index" align="center" width="55" label="序号"></el-table-column>
        <el-table-column prop="taskName" align="center" label="所属回款计划"></el-table-column>
        <el-table-column prop="backAmount" align="center" label="回款金额"></el-table-column>
        <el-table-column prop="backMethodName" align="center" label="回款方式"></el-table-column>
        <el-table-column prop="backDate" align="center" label="回款日期"></el-table-column>
        <el-table-column prop="executeUserName" align="center" label="负责人"></el-table-column>
        <el-table-column prop="createTime" align="center" label="创建时间"></el-table-column>
        <el-table-column prop="remark" align="center" label="备注"></el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import { Contracts } from '@/api/projectAdministration.js';
export default {
  name: 'Statistics',
  data () {
    return {
      loading: false,
      isShowloading: false,
      tableDate: []
    };
  },
  created () {

  },
  mounted () {
    this.loadDetailWidgetData()
  },
  methods: {
    /**
     * 项目管理
     */
    loadDetailWidgetData () {
      let params = {
        contractId: this.$route.query.contractId
      }
      return new Promise((resolve, reject) => {
        Contracts.backlist(this, params).then(res => {
          this.tableDate = res.data
        }).catch(e => {
          reject(e);
        });
      });
    }
  }
}
</script>

<style lang="scss" scoped>
h3{border-bottom: 1px solid #E9E9EB;padding: 0 0 10px;}
.table_container{margin: 10px 0;}
.form-single-info{display: flex;justify-content: center;}
.title{
  display: flex;align-items: center;justify-content: space-between;
  h4{font-weight: bold;}
}
.Taskslist{
  box-shadow: 0px 0px 7px 0px rgba(77, 165, 255, 0.3);border-radius: 0px 0px 4px 4px;padding: 10px 20px;
  display: flex;align-items: center;justify-content: space-between;
  h4{padding: 0;margin: 10px 0;font-weight: bold;}
  span{display: block;color: #409EFF;margin: 10px 0;}
  .color-text1{color: #F56C6C;}
  .color-text2{color: #C0C4CC;}
  .listimg{width: 60px;height: 60px;border-radius: 100%;overflow: hidden;}
  .listimg .el-image{width: 100%;height: 100%;}
}
</style>
